home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-19
/
eedlogic.zip
/
LOGIC.LIB
< prev
next >
Wrap
Text File
|
1991-03-18
|
5KB
|
464 lines
EEDRAW-LIB Version 1
#
# Logic library
#
# Written by Dan Bodoh, March 1990
# Direct comments/questions to bodoh@cae.wisc.edu
#
# The suffix digit on the gate name represents the number of inputs.
# Gates in library:
# nand2 nand3 nand4
# and2 and3 and4
# nor2 nor3 nor4
# or2 or3 or4
# xnor2 xnor3 xnor4
# xor2 xor3 xor4
# inv - an inverter
# nmos pmos - transistors
# pass - a pass gate
#
# Nand2 gate
#
DEF ~nand2 ~ 3 0 0 0
DRAW
P 4 4 0 0 0 0 8 4 8
A 4 4 4 -90 90
L -1 2 0 2
L -1 6 0 6
L 8 4 11 4 I
ENDDRAW
PINS
~
~
~
ENDPINS
ENDDEF
#
# Nand3 gate
#
DEF ~nand3 ~ 4 0 0 0
DRAW
P 4 4 0 0 0 0 8 4 8
A 4 4 4 -90 90
L -1 2 0 2
L -1 4 0 4
L -1 6 0 6
L 8 4 11 4 I
ENDDRAW
PINS
~
~
~
~
ENDPINS
ENDDEF
#
# Nand4 gate
#
DEF ~nand4 ~ 5 0 0 0
DRAW
P 4 4 0 0 0 0 8 4 8
A 4 4 4 -90 90
L -1 2 0 2
L -1 6 0 6
L -1 3 0 3
L -1 5 0 5
L 8 4 11 4 I
ENDDRAW
PINS
~
~
~
~
~
ENDPINS
ENDDEF
#
# and2 gate
#
DEF ~and2 ~ 3 0 0 0
DRAW
P 4 4 0 0 0 0 8 4 8
A 4 4 4 -90 90
L -1 2 0 2
L -1 6 0 6
L 8 4 11 4
ENDDRAW
PINS
~
~
~
ENDPINS
ENDDEF
#
# and3 gate
#
DEF ~and3 ~ 4 0 0 0
DRAW
P 4 4 0 0 0 0 8 4 8
A 4 4 4 -90 90
L -1 2 0 2
L -1 4 0 4
L -1 6 0 6
L 8 4 11 4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